package com.bifang.common.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

@Data
public class TokenVO implements Serializable {
    @ApiModelProperty(notes = "token")
    private String accessToken;

    @ApiModelProperty(notes = "第三方唯一id")
    private String openId;

    @ApiModelProperty(notes = "唯一id，用于多用户token缓存")
    private String uniId;

    @ApiModelProperty(notes = "过期时长")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long expireMinute;

    @ApiModelProperty(notes = "最新刷新时间")
    @JsonSerialize(using = ToStringSerializer.class)
    private long expireFreshTime;
}
